// 引入2个方法
import { observable,action } from "mobx-miniprogram";

const store = observable({
  num:1,
  name:'张三',
  chgnum: action(function (step) {
    this.num = this.num+step
  })
})
export {
  store
}